import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token-zzy' // 中展业
const FilesKey = 'FilesKey'
const enumListKey = 'enumListkey'
const AppidKey = 'AppidKey'
const APPID_SUBSYSTEMS = 'AppIdSubs'

export function getAppIdSubs() {
  return Cookies.get(APPID_SUBSYSTEMS)
}

export function setAppIdSubs(appidsubs) {
  return Cookies.set(APPID_SUBSYSTEMS, appidsubs)
}

export function getAppId() {
  return Cookies.get(AppidKey)
}

export function setAppID(appid) {
  return Cookies.set(AppidKey, appid)
}

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getFiles() {
  return Cookies.get(FilesKey)
}

export function setFiles(str) {
  return Cookies.set(FilesKey, str)
}

export function setEnumList(info) {
  return Cookies.set(enumListKey, info)
}

export function getEnumList() {
  return Cookies.get(enumListKey)
}

